/**
 * @description: Request result set
 *
 * SUCCESS("SUCCESS", "操作成功"),
 * FAILED("FAILED", "操作失败"),
 * VALIDATE_FAILED("VALIDATE_FAILED", "参数检验失败"),
 * UNAUTHORIZED("UNAUTHORIZED", "暂未登录或token已经过期"),
 * FORBIDDEN("FORBIDDEN", "没有相关权限");
 */
export enum ResultEnum {
  SUCCESS = 'SUCCESS',
  FAILED = 'FAILED',
  TIMEOUT = 401,
  TYPE = 'success',
}

/**
 * @description: request method
 */
export enum RequestEnum {
  GET = 'GET',
  POST = 'POST',
  PUT = 'PUT',
  DELETE = 'DELETE',
}

/**
 * @description:  contentType
 */
export enum ContentTypeEnum {
  // json
  JSON = 'application/json;charset=UTF-8',
  // form-data qs
  FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8',
  // form-data  upload
  FORM_DATA = 'multipart/form-data;charset=UTF-8',
}
